<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%-- if (request.getRemoteUser() == null) {--%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    
    <%@include file="/WEB-INF/jspf/cabecera.jspf" %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>SIGEADMIe</title>
            <link rel=stylesheet type="text/css" href="/cxc/style.css">
            <script type="text/javascript" >
                function inicializar() {
                    document.getElementById("j_username").focus();
                }
            </script>
        </head>
        <body>
            <form id="frmLogin" action="j_security_check" method="post">
                <table>
                    <tr>
                        <td width="170"> </td>
                        <td width="50">        </td>
                        <td>
                            <div class="login_cont">
                                <div class="login_form">
                                    <div id="loginLogo" class="login_logo">
                                        <%--Aqui va el logo--%>
                                    </div>
                                    <div id="loginTittle" class="login_form_tittle">
                                    </div>
                                    <div id="loginContent" class="login_form_content">
                                        <table class="login_form_content_layout">
                                            <tr>
                                                <td class="login_form_label"><label>Nombre usuario:</label></td>
                                                <td><input type="text" name="j_username" id="j_username" accesskey="u" class="login_form_input" ></td>
                                            </tr>
                                            <tr>
                                                <td class="login_form_label"><label>Contraseña:</label></td>
                                                <td><input type="password" name="j_password" id="j_password" accesskey="c" class="login_form_input" /></td>
                                            </tr>
                                            <tr>
                                                <td><br/></td>
                                                <td><input type="submit" value="Iniciar Sesión"></td>
                                            </tr>
                                        </table>
                                        <br/>
                                    </div>
                                    <div class="login_form_footer">
                                        <table class="login_form_content_layout">
                                            <tr>
                                                <td><a id="btnAcercaDe" class="login_form_button" >Acerca de...</a></td>
                                                <td><a id="btnAyuda" class="login_form_button">Créditos</a></td>
                                            </tr>
                                        </table>
                                        <br/>
                                        <table class="footer_copyright_table">
                                            <tr>
                                                <td>
                                                    <div class="copyright">UPN - SIGEADMI</div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>

            </form>
            <script type="text/javascript">inicializar();</script>
            <div class="centrar">
                <a href="#"><img src="/cxc/img/logo_ta_resize.png" border="0"/></a>
            </div>
           
            <%@include file="/WEB-INF/jspf/pie.jspf" %>
        
    </html>
    <%--} else {
                    response.sendRedirect(request.getContextPath() + "/index.jsf");
                }--%>
</f:view>
